package com.wgy.day2;

/**
 * Created by pc on 2020/10/31 20:10
 * Description: Demo1
 */
public class Demo02Ifelse {
    public static void main(String[] args) {
        int num = 69;
        if (num % 2 == 0) {
            System.out.println("偶数");
        } else {
            System.out.println("奇数");
        }
    }

    /**
     * Created by pc on 2020/10/31 21:03
     * Description: Demo1
     */
    public static class Demo02Max {

        public static void main(String[] args) {


            int a = 20;
            int b = 25;
            int max;
            //int max = a > b ? a : b;
            // System.out.println("最大值" + max);
            if (a>b){
                max=a;
            }else {
                max=b;
            }
            System.out.println(max);


        }


    }
}
